package com.cloud.rou.im.msg;

import com.cloud.rou.common.id.IdGenerator;
import com.cloud.rou.im.msg.enumtype.MsgType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ClientMsg implements Msg {
    /**
     * 消息id
     */
    private final Long msgId = IdGenerator.id();

    /**
     * 发送时间
     */
    private final Long createTime = System.currentTimeMillis();
    /**
     * 消息类型
     */
    private MsgType msgType;

    /**
     * 发送者userId
     */
    private Long senderId;


    @Override
    public Long getRecipientId() {
        return null;
    }
}
